{if !$bAdded}
{$sValMess}
<form method="post" action="{url link='public.account.submit.add-blog'}" style="margin:0px;" onsubmit="{$sValJs}">
<div style="padding:30px;font-size:10pt;" class="color">
{messages}
<table style="width:100%;" cellspacing="2" cellpadding="4">
<tr>
    <td style="text-align:right;" class="color"><span class="star">*</span> {language text="blog_title"}:</td>
    <td class="border13">
        <input type="text" name="val[title]" maxlength="150" size="30" onfocus="this.className='inputmain';" onblur="this.className='';" value="{$aValues.title|escape}" />
    </td>
</tr>
<tr>
    <td style="text-align:right;vertical-align:top;" class="color">{language text="Mod_Tag.tags"}:</td>
    <td class="border13">
        <input type="text" name="val[tags]" maxlength="80" size="30" onfocus="this.className='inputmain';" onblur="this.className='';" value="{$aValues.tags}"/>
        <br />{language text="Mod_Tag.tags_details"}
    </td>
</tr>
<tr>
    <td colspan="2" align="left">
    <br/>
        *{language text="content"}
        <span style="padding-left:10px;font-size:7pt;">
            <a class="link_action" href="{$sUrl}#" onclick="popUp2('{url link='public.popup.htmlguide'}#html','500','500','yes','200','100'); return false;">[ {language text="html_guide"} ]</a>
        </span>
        <div style="padding:5px;">
            <textarea style="width:100%" cols="50" rows="15" name="val[content]" id="maintext" onfocus="this.style.backgroundColor='#fff';" onblur="this.style.backgroundColor='#F6F6F6';">{$aValues.content}</textarea>
            {include file="$sMainTemplatePath/_blocks/smilies.html"}
        </div>
    </td>
    </tr>
    <tr>
        <td colspan="2"><span class="star">*</span> - {language text="mandatory_fields"}</td>
    <tr>
        <td></td>
        <td>
            <input name="act[add]" value="{language text="submit_blog"}" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" type="submit">
        </td>
    </tr>
</table>

</div>
</form>
{else}
<div style="padding:10px;font-size:10pt;" class="color"><div class="border13"><div style="padding:5px;">
<div style="padding:5px;"> {language text="below_you_can_view_what_y"}
  <br /><br />
  <span style="font-size:7pt;">
      <a class="link_action" href="{url link='public.account.myitems.blog.edit' id=$aItem.id}">[ {language text="edit"} ]</a>
      &nbsp;
      <a class="link_action" href="{url link='public.account.submit.add-blog'}">[ {language text="submit_more"} ]</a>
      &nbsp;
      <a class="link_action" href="{url link='public.account.myitems.blog' delete=$aItem.id}" onclick="return confirm('{language text="are_you_sure_that_you_wan_193"}');" >[ {language text="delete"} ]</a>
  </span>
  </div></div></div>
  <br /><br />
  <div style="font-size:8pt;">{$aItem.text|process_code}</div></div>
{/if}